package celiasoft.itasalib.query;

import celiasoft.itasalib.filegatherer.XMLGatherer;
import celiasoft.itasalib.query.resultparser.IQueryResultParser;
import celiasoft.itasalib.query.resultparser.QuerySingleShowSubResultParser;
import celiasoft.itasalib.staticdata.ItasaStaticUrls;

public class SingleShowSubQuery extends Query {

	private int _id;

	public SingleShowSubQuery(XMLGatherer gatherer, String apikey) {
		super(gatherer, apikey);
	}

	@Override
	protected String getQueryUrl() {
		return String.format(ItasaStaticUrls.SHOWS_SUBS_SINGLE_URL, this._id, getAPIKey());
	}

	public int getShowId(){
		return this._id;
	}
	
	public void setShowId(int id){
		this._id = id;
	}
	
	
	@Override
	protected IQueryResultParser getResultParser() {
		
		return new QuerySingleShowSubResultParser();
	}

	
}
